package com.sinopec.basemodule.constants;

import android.Manifest;
import android.os.Build;
import androidx.annotation.RequiresApi;

public class PermissionConst {

    /**
     * 存储权限
     */
    public static final int CODE_STORAGE = 7001;
    public static final String[] PERMISSION_STORAGE = {Manifest.permission.READ_EXTERNAL_STORAGE,
            Manifest.permission.WRITE_EXTERNAL_STORAGE};

    /**
     * 定位权限
     */
    public static final int CODE_LOCATION = 7002;
    public static final String[] PERMISSION_LOCATION = {Manifest.permission.ACCESS_COARSE_LOCATION,
            Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.READ_PHONE_STATE};

    /**
     * 拍照权限
     */
    public static final int CODE_CAMERA = 7003;
    public static final String[] PERMISSION_CAMERA = {Manifest.permission.CAMERA};

    /**
     * 电话权限
     */
    public static final int CODE_PHONE = 7004;
    public static final String[] PERMISSION_PHONE = {Manifest.permission.CALL_PHONE};

    /**
     * 拍照、麦克风
     */
    public static final int CODE_CAMERA_AUDIO = 7005;
    public static final String[] PERMISSION_CAMERA_AUDIO = {Manifest.permission.CAMERA, Manifest.permission.RECORD_AUDIO};

    /**
     * 安装未知来源app权限
     */
    public static final int CODE_INSTALL = 7006;
    @RequiresApi(api = Build.VERSION_CODES.M)
    public static final String[] PERMISSION_INSTALL = {Manifest.permission.REQUEST_INSTALL_PACKAGES};
}
